package cn.learn.sentinel.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author huangyezhan
 * @version 1.0
 * @date 2020年12月02日14:54
 */
@RestController
public class SentinelController {

    @RequestMapping(value = "sentinel", method = RequestMethod.GET)
    public String sentinel() throws InterruptedException {
        Thread.sleep(800);
        return "sentinel：成功！";
    }

    @RequestMapping(value = "sentinelB", method = RequestMethod.GET)
    public String sentinelB() throws InterruptedException {
        Thread.sleep(5000);
        return "sentinelB：成功！";
    }

}
